<?php
if($_REQUEST['type']=='reg'){

	if(CHILDTEMPLATEPATH && file_exists(CHILDTEMPLATEPATH . '/affiliate_reg_page.php')){
		include(CHILDTEMPLATEPATH . '/affiliate_reg_page.php');
	}else{
		include(TEMPLATEPATH . '/library/includes/affiliates/affiliate_reg.php');
	}	

}else{

	if(CHILDTEMPLATEPATH && file_exists(CHILDTEMPLATEPATH . '/affiliate_login_page.php')){
		include(CHILDTEMPLATEPATH . '/affiliate_login_page.php');
	}else{
		include(TEMPLATEPATH . '/library/includes/affiliates/affiliate_login.php');		
	}

}
?>









